#include <stdio.h>
#include <stdlib.h>
#include <dlfcn.h>

#include <map>


class DyHandle{
	void * dl_ptr;
	int version;
	int status;
	char  memo[256];
};

class DynamicLibCache{
	private:
		char  dldir[256];//the direcotry of dynamic library
	protected:
		map<std::string ,DyHandle >   dlcache;
	public:
		DynamicLibCache(const char * str);
		bool addSo(const char * libname ,int version);
		bool addSo(const cahr * libfullname);

};
